﻿using UnityTemplate.Repository;

namespace UnityTemplate.Services.Interface
{
    public interface IUserService
    {
        BaseUserInfos GetUserInfo(string userId, string userName);

        /// <summary>
        /// 通过用户名和密码获取用户信息
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        BaseUserInfos GetUserInfoByPassword(string userName, string password);

        /// <summary>
        /// 新增用户
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        int AddUser(BaseUserInfos user);
    }
}
